html,body,#app {
  height: 100%;
}

body {
  min-width: 360px;
  background: #f5f5f5;
}

#app {
  position: relative;
}

.view {
  position: absolute;
  bottom: 0;
  top: 56px;
  right: 0;
  left: 0;
}

.nav {
  height: 56px;
  background: linear-gradient(90deg,#4099ff,#73b4ff);
}

.nav__bar {
  text-align: center;
  padding: 10px;
  height: 56px;
}

.nav__logo {
  color: #ffffff;
  font-size: 22px;
  line-height: 36px;
}

.nav__aside-btn {
  float: left;
}

.nav__menu-btn {
  float: right;
}

.nav__aside-btn,
.nav__menu-btn {
  background: none;
  background: none;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 20px;
  line-height: 36px;
  padding: 0px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

@media (min-width: 992px) {
  .nav__bar {
    float: left;
  }

  .nav__logo {
    float: left;
    margin-left: 20px;
    margin-right: 47.5px;
  }

  .nav__aside-btn {
    float: right;
  }

  .nav__menu-btn {
    display: none;
  }
}

.aside {
  position: fixed;
  top: 56px;
  bottom: 0px;
  left: -240px;
  width: 235px;
  background: #ffffff;
  box-shadow: 2px 0 2.94px 0.06px rgba(4,26,55,.16);
  transition: all 1s;
  z-index: 1001;
}

.aside-mask {
  position: fixed;
  display: none;
  top: 56px;
  bottom: 0px;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.5);
  transition: all 1s;
  z-index: 1000;
}

.aside-ol {
  transform: rotateY(-90deg);
  transition: all 1s;
  padding: 0px;
  margin: 0px;
}

.aside-ol__item {
  list-style: none;
  min-height: 40px;
  color: #666;
  cursor: pointer;
  &:hover {
    color: #4099ff;
  }
  i {
    display: inline-block;
    width: 30px;
    line-height: 30px;
    font-size: 14px;
    text-align: center;
  }
}

.aside-ol__item-main {
  padding: 5px 12.5px;
}

.aside-ol__item-name {
  text-align: left;
  font-size: 14px;
}

.aside-ol__item-arrow {
  float: right;
  color: #666!important;
}

.aside-ol__item-arrow.fa-plus {
  display: block;
}

.aside-ol__item-arrow.fa-minus {
  display: none;
}

.aside-ol__item-children-warp {
  height: 0;
  overflow: hidden;
}

.aside-ol__item-children {
  margin: 15px 0px;
  border-left: 1px solid #d6d6d6;
  padding: 0;
  margin-left: 27px;
  color: #666!important;
  transform: rotateX(-90deg);
  transition: transform 0.5s;
}

.aside-ol__sub-item {
  list-style: none;
  padding: 5px 12.5px;
  
  &:hover {
    color: #4099ff;
  }
}

.aside-ol__item--active {
  .aside-ol__item-children-warp {
    height: auto;
  }
  
  &.aside-ol__item {
    color: #4099ff;
  }
  
  .aside-ol__item-main {
    background: rgba(0,0,0,0.15);
  }
  
  .aside-ol__item-arrow.fa-plus {
    display: none;
  }
  
  .aside-ol__item-arrow.fa-minus {
    display: block;
  }

  .aside-ol__item-children {
    transform: rotateX(0deg);
  }
}

.view {
  padding: 20px;
  margin-left: 0px;
  transition: margin-left 1s;
  transition-delay: 0.25s;
  overflow-y: auto;
}

.show-aside {
  .aside {
    left: 0px;
  }
  .aside-mask {
    display: block;
  }
  .aside-ol {
    transform: rotateY(0deg);
  }
}

@media (min-width: 992px) {
  .aside-mask {
    display: none !important;
  }

  .show-aside {
    .view {
      margin-left: 235px;
    }
  }
}

// ace
.ace_url {
  color: #0088cc;
}

.ace_url.ace_param {
  color: rgb(49, 132, 149);
}

.ace_url.ace_value {
  color: rgb(3, 106, 7);
}

.ace-tm .ace_gutter {
  background: transparent;
}

.ace_scroller {
  border-left: 1px solid #ccc;
}

.ace_method {
  color: rgb(197, 6, 11);
}

.ace_snippet-marker {
  background: rgba(14, 89, 189, 0.1) !important;
  border-top: dotted 1px rgba(194, 193, 208, 0.80);
  border-bottom: dotted 1px rgba(194, 193, 208, 0.80);
  margin-top: -1px;
  /* compensate for background */
}


.ui-menu {
  background-color: white;
  border: 1px solid #CCC
}

.ui-state-focus {
  color: white;
  background-color: #08C;
}

//
.animated {
  animation-duration: 0.33s !important;
}

//
.dev-helper {
  position: fixed;
  top: 76px;
  right: 0px;
  left: 275px;
  bottom: 20px;
  transform: translateX(100%);
  transition: transform 1s;
  border-radius: 0px 0px 0px 4px;
  box-shadow: none;
  z-index: 10;
  .open-btn {
    position: absolute;
    width: 30px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    left: -30px;
    top: -1px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-right: none;
    border-radius: 4px 0 0 4px;
    box-shadow: none;
    cursor: pointer;
  }
}

.dev-helper.open {
  transform: translateX(0%);
}